Guild icon
wafer.space Community
Information / general / speaking of multi-threading, last
Between 03/31/2026 23:59 and 05/01/2026 00:00
Avatar
Leo Moser (mole99) 04/07/2026 07:09
07:09
Would you be willing to open an issue, or perhaps even contribute to LibreLane? If enabling certain options would provide some speed improvements, that would definitely be appreciated. At first glance, I didn't see anything obvious in Gate Resizer.
Avatar
BreakingTaps 04/07/2026 15:26
ahhh sorry, that's what I get for responding without looking at my code changes. I meant OpenSTA not resizer, my bad! I can disentangle the change from the rest of my stuff and send a PR, was a minor tweak to openroad.py in the OpenSTAStep. (also added a blanket thread parameter since it looked like some other steps could take threads but I don't think that had much effect and is probably not very principled. Might have been redundant too)
Avatar
Leo Moser (mole99) 04/07/2026 17:56
Right! Yes, OpenSTA added native multithreading in its recent 3.0 release afaik. Donn added a compatibility layer to LibreLane, so we can continue using the same scripts for the LibreLane 3.0 release. Currently, LibreLane spawns an OpenSTA process for each corner using the MultiCornerSTA class. This was great at the time and definitely better than running each corner sequentially ^^ However, if you only have three corners, like on gf180mcu, there isn't much to be gained. Doing multithreading directly in OpenSTA is a major improvement, as many more threads can probably be used in parallel this way. It also means that we only need to keep the database in memory once, reducing the memory footprint and (likely) increasing cache hits. So running OpenSTA multithreaded is definitely desired :)
17:57
How did you modify LibreLane to run OpenSTA multithreaded? You should probably make sure that OpenSTA is only spawned once. Otherwise, you could end up with more software threads than hardware threads.
17:57
By default, each step should try to use up to --jobs threads if possible. This is done here, for example. As you can see, each step should also have local overrides e.g. in case running DRC with all available threads exhausts the system memory.
Avatar
BreakingTaps 04/08/2026 16:42
ahh good to know! I was only running small tests, will rerun with my full design to see if I accidentally blow up the machine 🙂
How did you modify LibreLane to run OpenSTA multithreaded?
IIRC I was just passing in -threads when invoking OpenSTA process. It was a very small / targeted change
16:42
will doublecheck when i get home
Avatar
Leo Moser (mole99) 04/09/2026 07:23
Haha, it won't blow up the machine, but it could potentially slow things down because of all the context switching 😁 Good to know that's all that's needed. So, we just need to disable the explicit multiprocessing in LibreLane and enable -threads.
Exported 9 message(s)
Timezone: UTC+0